package fr.uhp.mpr.tools;

import javax.swing.JFrame;

import fr.uhp.mpr.bayesnetwork.NetworkTables;
import fr.uhp.mpr.data.Intervalle;

public class Main {
	
	public static void main(String[] args){
		
		System.out.println("\nTEST DE PERFORMANCE : " + NetworkTables.getInstance().testPerformance());
		
		CurrentDataProvider cdp = new CurrentDataProvider();
		Intervalle i = BayesRule.getIntervallePluieSachant(cdp.getHumidite(),cdp.getPression(),cdp.getVent());
		RainView rv = new RainView(i,NetworkTables.confiance, BayesRule.getTemperatureGivenPressure(cdp.getPression()));
		
		JFrame frame = new JFrame(" Meteo a Metz ");		
		frame.setContentPane(rv);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
		frame.pack();
	}
}
